:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f5f5f7;
  --primary-text: #1d1d1f;
  --secondary-text: #86868b;
  --accent-color: #2997ff;
  --success-color: #27c346;
  --warning-color: #ff9f0a;
  --danger-color: #ff3b30;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --button-primary: #0066cc;
  --button-text: #ffffff;
  
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  
  color-scheme: light;
  color: var(--primary-text);
  background-color: var(--primary-bg);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.el-card {
  border-radius: var(--border-radius) !important;
  border: none !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
}

.el-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

.el-button {
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all var(--transition-speed) !important;
  height: 36px !important;
  padding: 0 16px !important;
  border: 1px solid #e4e4e4 !important;
  background-color: #ffffff !important;
  color: var(--primary-text) !important;
}

.el-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.el-button--primary {
  background: var(--button-primary) !important;
  border-color: var(--button-primary) !important;
  color: var(--button-text) !important;
}

.el-button--primary:hover {
  opacity: 0.9 !important;
}

.el-button--success {
  background: var(--success-color) !important;
  border-color: var(--success-color) !important;
  color: var(--button-text) !important;
}

.el-button--warning {
  background: var(--warning-color) !important;
  border-color: var(--warning-color) !important;
  color: var(--button-text) !important;
}

.el-button--danger {
  background: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
  color: var(--button-text) !important;
}

.action-button {
  height: 36px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  border: 1px solid #e4e4e4 !important;
  background-color: #ffffff !important;
  color: var(--primary-text) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.action-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.el-tag {
  border-radius: 6px !important;
  padding: 4px 8px !important;
  height: auto !important;
  line-height: 1.4 !important;
  border: none !important;
}

.page-header {
  margin-bottom: 32px !important;
}

.page-header h1 {
  font-size: 28px !important;
  font-weight: 600 !important;
  margin: 0 0 8px !important;
  color: var(--primary-text) !important;
}

.page-header .subtitle {
  font-size: 16px !important;
  color: var(--secondary-text) !important;
  margin: 0 !important;
}

.card-content {
  padding: 24px !important;
}

.status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.info-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

.info-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.info-label {
  font-size: 14px !important;
  color: var(--secondary-text) !important;
}

.info-value {
  font-size: 16px !important;
  color: var(--primary-text) !important;
  font-weight: 500 !important;
}

.action-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 24px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--secondary-bg) !important;
}

.action-button {
  flex: 1 !important;
}

.el-input {
  --el-input-border-radius: 8px !important;
}

.el-table {
  border-radius: var(--border-radius) !important;
  overflow: hidden !important;
}

.el-table th {
  background-color: var(--secondary-bg) !important;
  font-weight: 600 !important;
}

.el-menu {
  background: transparent !important;
}

.el-menu-item {
  height: 50px !important;
  line-height: 50px !important;
  margin: 8px 0 !important;
  border-radius: 8px !important;
}

.el-menu-item.is-active {
  background: var(--button-primary) !important;
  color: white !important;
}

/* 新增按钮样式 */
.edit-button,
.repair-button {
  border-radius: 6px !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.edit-button {
  background-color: #ffffff !important;
  color: var(--primary-text) !important;
  border: 1px solid #e4e4e4 !important;
}

.repair-button {
  background-color: var(--warning-color) !important;
  color: #ffffff !important;
  border: none !important;
}

.edit-button:hover,
.repair-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
</style>